package service

import "day12_12_homework/config"

func HandleSendSms(source string, tel string, code string) string {
	Num := "sendSms_" + source + tel
	get := config.Rdb.Get(config.Ctx, Num)
	if get.Val() == "" {
		return "暂未获取短信验证码"
	}
	if get.Val() != code {
		return "验证码错误"
	}
	return ""
}
